package com.np.windowmanagerdemo1;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_empty).setOnClickListener(v -> {
            startActivity(new Intent(this,EmptyActivity.class));
        });

        findViewById(R.id.btn_topmost).setOnClickListener(v -> {
            new TopmostActivity().showTopmostDialog(this);
        });

        findViewById(R.id.btn_pip).setOnClickListener(v -> {
            startActivity(new Intent(this,PictureInPictureActivity.class));
        });
    }
}